﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAL;

namespace BLL
{
    public class cDataInTransfer
    {
        GetData data = new GetData();

        public List<DTO.RegionEntity> LoadRegionList()
        {
            return data.LoadRegionList();
        }
        public List<StatusEntity> LoadStatusList()
        {
            return data.LoadStatusList();
        }
        public List<ResultStatusEntity> LoadResultStatusList()
        {
            return data.LoadResultStatusList();
        }
        public List<CallStatusEntity> LoadCallStatusList()
        {
            CallStatusService sv = new CallStatusService();
            return sv.LoadCallStatusByAll();
        }
        public List<CollectorEntity> LoadListCollector()
        {
            return data.LoadListCollector();
        }
        public List<BrandEntity> LoadListBrand()
        {
            return data.LoadListBrand();
        }
        public List<SampleEntity> LoadListSample()
        {
            return data.LoadListSample();
        }
        public void AddNewResultStatus(ResultStatusEntity result, string node, ref string message)
        {
            UpdateData update = new UpdateData();
            update.AddNewResultStatus(result, node, ref message);
        }
        public void UpdateResultStatus(ResultStatusEntity result, ref string message)
        {
            UpdateData update = new UpdateData();
            update.UpdateResultStatus(result, ref message);
        }
        public void DisableResultStatus(ResultStatusEntity result)
        {
            UpdateData update = new UpdateData();
            update.DisableResultStatus(result);
        }

        public void AddNewBrand(BrandEntity brand, string node)
        {
            UpdateData update = new UpdateData();
            update.AddNewBrand(brand, node);
        }

        public void UpdateBrand(BrandEntity brand)
        {
            UpdateData update = new UpdateData();
            update.UpdateBrand(brand);
        }

        public void UpdateBrandStatus(BrandEntity list, string stat)
        {
            UpdateData update = new UpdateData();
            update.UpdateBrandStatus(list, stat);
        }

        public List<RoleEntity> LoadRole()
        {
            return data.LoadRole();
        }

        public void LoadCallSetting()
        {
            data.LoadCallSetting();
        }
        public void UpdateCallsetting(int[] callseting)
        {
            UpdateData up = new UpdateData();
            up.UpdateCallSetting(callseting);
        }
    }
}
